package cmd;

import data.Data_Book;
import tree.LeafKind;

class Cmd_ChangePage extends Cmd {
    var oPage : Int;
    var nPage : Int;

    public function new(page) {
        super();
        this.nPage = page;
    }

    public override function Do() {
        oPage = data_book.ChangeCurPage(nPage);
    }

    public override function Undo() {
        data_book.ChangeCurPage(oPage);
    }

}